using System;
using System.Collections.Generic;
using System.Text;

namespace ModWatch
{

	/// <summary>
	/// Provides data for the <see cref="ModWatch.CustomModWatcher.CheckingChange"/>
	/// event of a <see cref="ModWatch.CustomModWatcher"/>.
	/// </summary>
	public class CustomModWatcherCheckChangeEventArgs : EventArgs
	{

		private object _savedValue;

		/// <summary>
		/// Gets the value that was most recently saved.
		/// </summary>
		public object SavedValue
		{
			get { return _savedValue; }
		}


		private bool _hasChanged;

		/// <summary>
		/// Indicates whether or not the value has changed.
		/// </summary>
		public bool HasChanged
		{
			get { return _hasChanged; }
			set { _hasChanged = value; }
		}

		/// <summary>
		/// Initializes a new instance of the
		/// <see cref="ModWatch.CustomModWatcherCheckChangeEventArgs"/> class.
		/// </summary>
		/// <param name="savedValue">
		/// The value that was most recently saved.
		/// </param>
		public CustomModWatcherCheckChangeEventArgs(object savedValue)
		{
			_savedValue = savedValue;
		}

	}

}
